<#include "nav.ftl"/>
<html>
	<head>
		<script type="text/javascript" src="js/search_result.js" ></script>
		<link rel="stylesheet" type="text/css" href="css/search_result.css"/>
		<script type="text/javascript">
			var search = '${search!}';
			var typeCode = '${typeCode!}';
			var cvId = '${cvId!}';
			var state = '${state!}';
			//加载动漫
			function appendAnime()
			{
				loading = true;
				$.ajax({
					url:'search/getSearchResult',
					data:param+'&page='+(page=page+1)+'&length='+length,
					dataType:'json',
					type:'post',
					success:function(data, textStatus){
						if(data.length==0)
						{
							end = true;
						}
						for(var i in data)
						{
							$("#searchResult").append(
								'<li class="anime">'+
									'<a href="animeInfo?animeId='+data[i].id+'">'+
										'<img class="cover" src="${coverPath}'+data[i].cover_url+'"/>'+
										'<div class="anime_name" title="'+data[i].name+'">'+data[i].name+'</div>'+
									'</a>'+
								'</li>'
							);
						}
						loading = false;
					}
				});
			}
		</script>
	</head>
	<body>
		<div class="middle">
			<div class="left">
			</div>
			<div class="middle_context">
				<div class="akiba_panel">
					<ul id="searchResult" class="anime_context">
					</ul>
				</div>
			</div>
			<div class="right">
			</div>
		</div>
	<body>
</html>